//
//  YZMYinLianPayCell.m
//  YZMicroStock
//
//  Created by apple on 2018/1/5.
//  Copyright © 2018年 cqjr. All rights reserved.
//

#import "YZMYinLianPayCell.h"

@interface YZMYinLianPayCell ()<UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UITextField *textFieldAccount;

@property (weak, nonatomic) IBOutlet UITextField *textFieldName;

@property (weak, nonatomic) IBOutlet UITextField *textFieldIDNumber;

@property (weak, nonatomic) IBOutlet UITextField *textFieldPhone;

@property (weak, nonatomic) IBOutlet UIButton *btnCode;

@property (weak, nonatomic) IBOutlet UITextField *textFieldCode;

@property (weak, nonatomic) IBOutlet UITextField *textFieldTradeAccount;



@end

@implementation YZMYinLianPayCell{
    NSString *_account;
    NSString *_name;
    NSString *_IDNumber;
    NSString *_phone;
    NSString *_code;
    NSString *_tradeAccount;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.textFieldAccount addTarget:self action:@selector(changeAccount:) forControlEvents:UIControlEventValueChanged];
    [self.textFieldName addTarget:self action:@selector(changeName:) forControlEvents:UIControlEventValueChanged];
    [self.textFieldIDNumber addTarget:self action:@selector(changeIDNumber:) forControlEvents:UIControlEventValueChanged];
    [self.textFieldPhone addTarget:self action:@selector(changePhone:) forControlEvents:UIControlEventValueChanged];
    [self.textFieldCode addTarget:self action:@selector(changeCode:) forControlEvents:UIControlEventValueChanged];
    [self.textFieldTradeAccount addTarget:self action:@selector(changeTradeAccount:) forControlEvents:UIControlEventValueChanged];
    [self.btnCode addTarget:self action:@selector(gainCode) forControlEvents:UIControlEventTouchUpInside];
}

- (void)changeAccount:(UITextField *)textField{
    _account = textField.text;
}

- (void)changeName:(UITextField *)textField{
    _name = textField.text;
}

- (void)changeIDNumber:(UITextField *)textField{
    _IDNumber = textField.text;
}

- (void)changePhone:(UITextField *)textField{
    _phone = textField.text;
}

- (void)changeCode:(UITextField *)textField{
    _code = textField.text;
}

- (void)changeTradeAccount:(UITextField *)textField{
    _tradeAccount = textField.text;
}

- (void)gainCode{
    
}

- (IBAction)submit:(id)sender {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
